package net.zm123.sync;

import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;

public class RpcSyncClientApp {
    public static void main(String[] args) {
        ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", 9999)
                .usePlaintext()  // 这里是为了简化示例，生产环境中应该使用TLS
                .build();
        RpcSyncClient client = new RpcSyncClient(channel);
        client.testActionMethod();
        channel.shutdown();//关闭
    }
}
